Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert to GHA, fix tests, fix build #388

Merged
merged 5 commits into from
Apr 15, 2024
Merged

Convert to GHA, fix tests, fix build #388

merged 5 commits into from
Apr 15, 2024

Conversation

MrCreosote
Copy link
Member

No description provided.

@MrCreosote MrCreosote requested a review from Xiangs18 April 11, 2024 17:05
Copy link

codecov bot commented Apr 11, 2024

Codecov Report

❗ No coverage uploaded for pull request base (develop@1e699df). Click here to learn what that means.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop     #388   +/-   ##
==========================================
  Coverage           ?   93.65%           
  Complexity         ?     1590           
==========================================
  Files              ?      102           
  Lines              ?     4743           
  Branches           ?      828           
==========================================
  Hits               ?     4442           
  Misses             ?      286           
  Partials           ?       15           

@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

@MrCreosote MrCreosote changed the title Convert to GHA, fix tests Convert to GHA, fix tests, fix build Apr 11, 2024
- "tcp://ci-mongo:27017"
- "-wait"
- "tcp://mongoinit:8080"
- "tcp://mongo:27017"
- "-timeout"
- "120s"
- "-template"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If my understanding is correct,
a line starts with "-" is an arg, and then followed by its val? For instance, "-timeout", "120s"
What are "java" and "-Djetty.home=/usr/local/jetty" then?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"-" is an arg, and then followed by its val?

Not always, one example is -multiline

The first set of arguments are for dockerize. Then there's the command that dockerize will run, java, and its arguments.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

among these args, which are for docker and which are for java programs?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

everything after java are the java args

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about -template? I did not find this arg in docker-compose up -h

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the arguments are for dockerize, not docker-compose

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. May I know which line it pull dockerize image? Cannot find it anywhere.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't, dockerize is built into the base image

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found it. is here:

|3 BRANCH=master BUILD_DATE=2018-11-08T20:13:52Z VCS_REF=bb0c445 /bin/sh -c mkdir -p /var/lib/apt/lists/partial && 	apt-get update -y &&     apt-get install -y ca-certificates tomcat8-user libservlet3.1-java &&     update-ca-certificates &&     useradd -c "KBase user" -rd /kb/deployment/ -u 998 -s /bin/bash kbase &&     mkdir -p /kb/deployment/bin &&     mkdir -p /kb/deployment/jettybase/logs/ &&     touch /kb/deployment/jettybase/logs/request.log &&     chown -R kbase /kb/deployment &&     cd /kb/deployment/bin &&     wget -N https://github.com/kbase/dockerize/raw/master/dockerize-linux-amd64-v0.6.1.tar.gz && 	tar xvzf dockerize-linux-amd64-v0.6.1.tar.gz &&     rm dockerize-linux-amd64-v0.6.1.tar.gz

Copy link
Collaborator

@Xiangs18 Xiangs18 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@MrCreosote MrCreosote merged commit ea5fa31 into develop Apr 15, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants